<?php
if(isset($qty) and ($qty))  
{
	?>
<b>Quantity : </b>
<input type="number" value="<?php echo $qty['OptionValue']['qty']; ?>"  onkeypress="var its_max = $(this).attr('max'); var its_val =$(this).attr('value'); if(its_max<its_val){ alert('You cant exceed the remaining Quanity.');}" max="<?php echo $qty['OptionValue']['qty']; ?>" id="<?php echo $qty['OptionValue']['id']; ?>" class="optionqty" size="5" />
<?php
}
else
{
	?>
<b>Quantity : </b>
<input type="number" value="0" id="0ID" disabled="disabled" class="optionqty" size="5" />
    <?php
	//echo "No Record!";
}
?>
